package com.atos.optical.controller;

import com.alibaba.fastjson2.JSONObject;
import com.atos.optical.common.ApiResult;
import com.atos.optical.common.BaseHttpController;
import com.atos.optical.utils.CacheUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wanghra
 * @version 1.0
 * @description
 * @date 2025/8/12
 */
@RestController
@RequestMapping("/debug")
public class DebugController extends BaseHttpController {
    @GetMapping("/getAllCache")
    public ApiResult<JSONObject> getAllCache() {
        return new ApiResult<>(CacheUtil.getAllCache());
    }
}
